package com.api.shopapi.service.impl;

import com.api.shopapi.entity.InstitutionStaffRel;
import com.api.shopapi.mapper.InstitutionMapper;
import com.api.shopapi.mapper.InstitutionStaffRelMapper;
import com.api.shopapi.service.InstitutionStaffRelService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("InstitutionStaffRelServiceImplOne")
public class InstitutionStaffRelServiceImpl implements InstitutionStaffRelService {


    @Autowired
    private InstitutionStaffRelMapper institutionStaffRelMapper;

    @Override
    public
    int insert(InstitutionStaffRel institutionStaffRel){
        return institutionStaffRelMapper.insert(institutionStaffRel);
    }

    @Override
    public
    InstitutionStaffRel getByInstitutionStaffRelCode(String institutionStaffRelCode){
        return institutionStaffRelMapper.getByInstitutionStaffRelCode(institutionStaffRelCode);
    }

    @Override
    public
    InstitutionStaffRel getByStaffCode(String staffCode){
        return institutionStaffRelMapper.getByStaffCode(staffCode);
    }

    @Override
    public
    List<InstitutionStaffRel> getListByInstitutionCode(String institutionCode){
        return institutionStaffRelMapper.getListByInstitutionCode(institutionCode);
    }

    @Override
    public
    int deleteByInstitutionStaffRelCode(String institutionStaffRelCode){
        return institutionStaffRelMapper.deleteByInstitutionStaffRelCode(institutionStaffRelCode);
    }

}
